﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinFormsApp1.Common;

namespace WinFormsApp1.Leo.week02
{
    public partial class ScaleTypetesShow : Form
    {
        public ScaleTypetesShow()
        {
            InitializeComponent();
        }
        //磅秤类型列表
        private async void ScaleTypetesShow_Load(object sender, EventArgs e)
        {
            var items = await HttpClientHelper.RequestUrl<string, ApiResult<List<ScaleTypeShow>>>(URLCommon.Url2, "/WeekListOne_Leo/GetScaleTypeShow", HttpClientHelper.MethodType.GET, default);
            this.dataGridView1.DataSource = items.Data;
        }

        private async void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            
        }
    }

    public class ScaleTypeShow
    {
        public int scaleTypeId { get; set; }

        public string scaleTypeName { get; set; }
    }
}
